<!-- 模块说明 -->
<template>
         <van-nav-bar
  title="设置学校"
  left-text=""
  left-arrow
  @click-left="onClickLeft"
/>
<form action="/">
  <van-search
    v-model="value"
    show-action
    action-text="搜索"

    shape="round"
    clear-trigger="always"	
    placeholder="请输入关键词搜索用户"
    @search="onSearch"
    @cancel="onCancel"
  />
</form>

<van-tree-select
  v-model:active-id="activeId"
  v-model:main-active-index="activeIndex"
  :items="items"
/>


</template>

<script setup>
import { ref } from 'vue';

const onClickLeft = () => history.back();

const activeId = ref(1);
    const activeIndex = ref(1);
    const items = [
      {
        text: '浙江',
        children: [
          { text: '杭州', id: 1 },
          { text: '温州', id: 2 },
          { text: '宁波', id: 3, disabled: true },
        ],
      },
      {
        text: '江苏',
        children: [
          { text: '南京', id: 4 },
          { text: '无锡', id: 5 },
          { text: '徐州', id: 6 },
        ],
      },
      { text: '福建', disabled: true },
    ];
</script>
<style lang="scss" scoped>
</style>
